package com.example.mybatisplus.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.mybatisplus.model.domain.Admin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2021-04-19
 */
@Repository
public interface AdminMapper extends BaseMapper<Admin> {

   Admin myGetById(@Param("id") Long i);

    Page<Admin> myPage(@Param("page") Page<Admin> page);

    Admin getById(@Param("id") long l);
    // 动态sql
}
